from django.conf.urls.defaults import *

urlpatterns = patterns('profile',
    (r'friend_list/(?P<user_id>\d+)/$',   'friends.friends_list'),
    (r'bookshelf_list/(?P<user_id>\d+)/$',   'detail.bookshelf_list'),
    (r'add_friend/(?P<user_id>\d+)/$',   'friends.add'),
    (r'remove_friend_POST/$',            'friends.remove_POST'),
    (r'add_friend$',                     'friends.add', {'user_id':None}),
    (r'remove_friend/(?P<user_id>\d+)/$','friends.remove'), 
    (r'(?P<user_id>\d+)/$',              'detail.display'),
    (r'$',                               'detail.display', {'user_id': None}),
)
